﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace SimpleRest.Serialization.Attributes.Annotations
{
    [AttributeUsage(AttributeTargets.Property)]
    public class RangeAttribute : System.ComponentModel.DataAnnotations.RangeAttribute
    {
        public readonly bool IsInclusive;

        public RangeAttribute(bool isInclusive, int min, int max)
            : base(min, max)
        {
            this.IsInclusive = isInclusive;
        }
        public RangeAttribute(bool isInclusive, double min, double max)
            : base(min, max)
        {
            this.IsInclusive = isInclusive;
        }
    }
}
